#include "tomato.h"

Tomato::Tomato(QQmlApplicationEngine &engine, QObject *parent) :
    QObject(parent),
    _engine(engine)
{
    _timer = new QTimer(this);
    connect(_timer, &QTimer::timeout, this, &Tomato::showTime);
    auto item = engine.rootObjects().first()->property();
    if(item)
//    _timer->start(1000);
}

Tomato::~Tomato(){
    disconnect();
    if(_timer){
        delete _timer;
    }
}

void Tomato::showTime(){

}
